package com.bondex.charter.schedule;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 清空Redis中的流水缓存的定时任务
 * Created by JD on 2020/10/10.
 */
@Component
@Configuration
@EnableScheduling
public class DemoTask {

	/**
	 * 每月2号早晨，清理两个月之前的号段
	 * [秒] [分] [小时] [日] [月] [周] [年]
	 */
	@Scheduled(cron = "0 0 2 1 * *")
	public void clearSerialInHistory() {
		try {

		} catch (Exception e) {

		} finally {
		}
	}

}
